package yzserver.sx4a.form;

import yzserver.sx4a.domain.PositionDomain;
import yzserver.sx4a.domain.UserDomain;

/**
 * Created with IntelliJ IDEA.
 * User: andrew
 * Date: 14-8-15
 * Time: 上午10:27
 * To change this template use File | Settings | File Templates.
 */
public class Position {
    private String positionid; //岗位id
    private String positionTypeid;//岗位类型id
    private String positionname;//岗位名称
    private String positionparent;//岗位父ID
    private String displayname ;//       岗位全名
    private String opuser ;//操作人信息
    private String positionMutual;//岗位互斥信息
    private String enable;//岗位状态（0是有效，1是失效）
    private String startdate;//生效时间yyyy-MM-dd 如2010-03-08ate
    private String enddate;//失效时间yyyy-MM-dd 如2010-03-08e
    private String updatedate;//更新时间yyyy-MM-dd HH:mm:ss，如2010-03-08
    private String orgid;//组织机构ID
    private String jobid;//职务ID
    private String orgnum;//组织机构非20位ID

    public Position(){

    }

    public Position(PositionDomain domain) {
        this.positionid = domain.getPOSITIONID();
        this.positionTypeid = domain.getPOSITION_TYPEID();
        this.positionname = domain.getPOSITIONNAME();
        this.positionparent = domain.getPOSITIONPARENT();
        this.displayname = domain.getDISPLAYNAME();
        this.opuser = domain.getOPUSER();
        this.positionMutual = domain.getPOSITION_MUTUAL();
        this.enable = domain.getENABLE();
        this.startdate = domain.getSTARTDATE();
        this.enddate = domain.getENDDATE();
        this.updatedate = domain.getUPDATEDATE();
        this.orgid = domain.getORGID();
        this.jobid = domain.getJOBID();
        this.orgnum = domain.getORGNUM();
    }

    public String getPositionid() {
        return positionid;
    }

    public void setPositionid(String positionid) {
        this.positionid = positionid;
    }


    public String getPositionname() {
        return positionname;
    }

    public void setPositionname(String positionname) {
        this.positionname = positionname;
    }

    public String getPositionparent() {
        return positionparent;
    }

    public void setPositionparent(String positionparent) {
        this.positionparent = positionparent;
    }

    public String getDisplayname() {
        return displayname;
    }

    public void setDisplayname(String displayname) {
        this.displayname = displayname;
    }

    public String getOpuser() {
        return opuser;
    }

    public void setOpuser(String opuser) {
        this.opuser = opuser;
    }

    public String getPositionTypeid() {
        return positionTypeid;
    }

    public void setPositionTypeid(String positionTypeid) {
        this.positionTypeid = positionTypeid;
    }

    public String getPositionMutual() {
        return positionMutual;
    }

    public void setPositionMutual(String positionMutual) {
        this.positionMutual = positionMutual;
    }

    public String getEnable() {
        return enable;
    }

    public void setEnable(String enable) {
        this.enable = enable;
    }

    public String getOrgid() {
        return orgid;
    }

    public void setOrgid(String orgid) {
        this.orgid = orgid;
    }

    public String getJobid() {
        return jobid;
    }

    public void setJobid(String jobid) {
        this.jobid = jobid;
    }

    public String getOrgnum() {
        return orgnum;
    }

    public void setOrgnum(String orgnum) {
        this.orgnum = orgnum;
    }

    public String getStartdate() {
        return startdate;
    }

    public void setStartdate(String startdate) {
        this.startdate = startdate;
    }

    public String getEnddate() {
        return enddate;
    }

    public void setEnddate(String enddate) {
        this.enddate = enddate;
    }

    public String getUpdatedate() {
        return updatedate;
    }

    public void setUpdatedate(String updatedate) {
        this.updatedate = updatedate;
    }
}
